package com.crocodile.game17.common;

/**
 * 异常信息枚举类
 */
public enum AppExceptionMsgEnum {
    NOT_FOUND(404,"NOT FOUND"),
    VALIDATION(422,"Validation error"),
    UNAUTHORIZED(401,"Unauthorized"),
    SERVER_ERROR(500,"SERVER ERROR")
    ;

    //状态
    private int status;
    //信息
    private String msg; //message

    AppExceptionMsgEnum(int status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }
}
